<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="tel://15807287687">电话：15807287687</a>
    <br>
    <br>请输入手机号：
    <br>
    <input type="text" name="" id="phone">
    <button onclick="f1()">呼叫</button>
<script>
    function f1(){
        var phone = document.getElementById("phone").value
        var confirm1 = window.confirm("呼叫"+phone+"?")
        if(confirm1 == true){
            window.location.href="tel://"+phone
        }        
    }

</script>
</body>
</html>
